package com.platform.qujia.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.platform.qujia.pojo.CouponWriteOffRecords;
import com.platform.qujia.pojo.dto.CancelCouponDto;
import com.platform.qujia.pojo.vo.CouponInfoVO;
import com.platform.qujia.utils.ResultData;

import java.util.Date;

/**
 * @author PC
 * @description 针对表【coupon_write_off_records(优惠券核销记录表)】的数据库操作Service
 * @createDate 2023-10-17 20:16:44
 */
public interface CouponWriteOffRecordsService extends IService<CouponWriteOffRecords> {

    /**
     * 小程序核销优惠券
     *
     * @param cancelCouponDto
     * @return
     */
    ResultData<?> cancelCoupon(CancelCouponDto cancelCouponDto);

    ResultData<CouponInfoVO> getIfCancelCouponSuccess(String couponNo);

}
